<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
    
        <h2>#{webtext.sections}</h2>
        <hr/>
        
        <h:form prependId="false">
            <p:dataGrid  var="cat" value="#{categoryController.items}" columns="1">
                <p:commandLink update=":content_panel" id="item" styleClass="menu_item" value="#{cat.name}" action="#{productController.prepareSearch}">
                    <f:setPropertyActionListener value="#{cat}" target="#{productController.searchCriteria.searchCategory}"/>
                </p:commandLink>
            </p:dataGrid>  
        </h:form>
        
</ui:composition>


